package org.wlgzs.shop.bean;

import lombok.Data;

import javax.validation.constraints.NotNull;
@Data
public class Coupons {

    /**
     *
     *红包id
     */
    private Integer couponsId;

    /**
     *
     *金额
     */
    @NotNull
    private Float money;

    /**
     *
     *商品最低消费金额
     */
    @NotNull
    private Float goodsBottomMoney;

    /**
     *
     *图片路径
     */
    @NotNull
    private String photoUrl;

    /**
     *
     *兑换积分
     */
    @NotNull
    private Integer exchangeIntegral;

    public Integer getCouponsId() {
        return couponsId;
    }

    public void setCouponsId(Integer couponsId) {
        this.couponsId = couponsId;
    }

    public Float getMoney() {
        return money;
    }

    public void setMoney(Float money) {
        this.money = money;
    }

    public Float getGoodsBottomMoney() {
        return goodsBottomMoney;
    }

    public void setGoodsBottomMoney(Float goodsBottomMoney) {
        this.goodsBottomMoney = goodsBottomMoney;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl == null ? null : photoUrl.trim();
    }

    public Integer getExchangeIntegral() {
        return exchangeIntegral;
    }

    public void setExchangeIntegral(Integer exchangeIntegral) {
        this.exchangeIntegral = exchangeIntegral;
    }
}